package com.zlw;

import java.io.Serializable;

/**
 * @ClassName Student
 * @Description TODO
 * @Author zhaoluowei
 * @Date 2020/2/8  10:30
 * @Version 1.0
 */

public class Student extends Person implements Hello, Serializable {


    private int  age;
    private String name;

    public Student() {
        this("无参构造");
    }

    public Student(String name) {
        this.name = name;
    }

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
